package com.jiuyou.clientController.protocolTemplate;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.protocolTemplate.domain.ProtocolTemplate;
import com.ruoyi.protocolTemplate.service.IProtocolTemplateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: chengliang
 * @Date: Created in 2021/7/9 13:30
 */
@RestController
@RequestMapping("/client/protocol")
public class ProtocolTemplateClientController extends BaseController {
    @Autowired
    private IProtocolTemplateService templateService;

    @RequestMapping("/getTemplate/{code}")
    public ProtocolTemplate getTemplate(@PathVariable String code){
        return templateService.selectProtocolTemplateByCode(code);
    }
}
